﻿#pragma once
#include "EditEntry.h"

class IntegerEditEntry : public EditEntry {
    Q_OBJECT
    struct IntengerEditEntryPrivate;
    QScopedPointer<IntengerEditEntryPrivate> p;
public:
    virtual ~IntegerEditEntry();
    explicit IntegerEditEntry(QWidget *parent = nullptr);
    void setRange(int min, int max);
    void setValue(int value);
    int value() const;
signals:
    void valueChanged(int value);
private:
    void InitUi();
};

